home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
076-100
/
disk_096
/
animplayer
/
userrequest.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-06
|
1KB
|
68 lines
/************************************************************
*
* NAME
* UserRequest -- TRUE/FALSE continuance
*
* DESCRIPTION
* Often, a situation occurs where the user should
* be notified of some information. This function
* is passed a statement like, "NO DISKS PRESENT",
* and returns TRUE or FALSE as picked by the user.
*
* copyright (c) 1987 Martin D. Hash
*
* LAST EDITED
* Martin Hash 30 Nov 1986
*
* EDIT HISTORY
* 30 Nov 1986 MH Created.
*
**********************************************************/
#include <exec/types.h>
#include <intuition/intuition.h>
/* EXTERNAL VARIABLES */
extern struct Window *window;
/* LOCAL VARIABLES */
#define COLOR0 0
#define COLOR1 1
#define COLOR2 2
#define COLOR3 3
/* LOCAL VARIABLES */
static struct IntuiText autotext = {
COLOR3, COLOR1, JAM2,
5, 5, NULL,
NULL,
NULL
};
static struct IntuiText true = {
COLOR0, COLOR1, JAM2,
7, 3, NULL,
"TRUE",
NULL
};
static struct IntuiText false = {
COLOR3, COLOR1, JAM2,
7, 3, NULL,
"FALSE",
NULL
};
/* FUNCTION */
BOOL UserRequest( text )
char *text;
{
autotext.IText = text;
return (BOOL)AutoRequest( window, &autotext, &true, &false, 0, 0, 319, 60 );
}